home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15724 < prev    next >
Encoding:
Text File  |  1996-08-05  |  993 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: netcom.com!smryan
  3. From: smryan@netcom.com (@#$%!?!)
  4. Subject: Re: stdio question
  5. Message-ID: <smryanDq7FC8.G1B@netcom.com>
  6. Organization: The Programmer formerly known as S M Ryan
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <4lc02b$7cm@ari.ari.net>
  9. Date: Sun, 21 Apr 1996 08:52:56 GMT
  10. Sender: smryan@netcom23.netcom.com
  11.  
  12. : I know this may sound pretty stupid but I'm a beginner at C and I've
  13. : been trying to figure this out. I am trying to make a program which
  14. : reads a binary input from stdin and writes binary to stdout. Only
  15.  
  16.  
  17. On your fopen, do you include 'b' in permissions, such as
  18.  
  19.     input = fopen("input","rb");
  20.     output = fopen("output","wb");
  21. -- 
  22. The Queen who loves, the Queen of life,    | smryan@netcom.com  PO Box 1563
  23. the Queen who straits, the Queen of strife;|          Cupertino, California
  24. with gasp of death or gift of breath       | (xxx)xxx-xxxx            95015
  25. she brings the choice of birth or knife.   |         I don't use no smileys
  26.